<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
  <head>


	<!--[if IE]>
	<script src="<%=basePath %>/js/jquery-1.9.1.min.js" type="text/javascript"></script>
	<![endif]-->
    <![if !IE]>
      <script src="<%=basePath %>/plugins/jquery-3.1.1/jquery.min.js" type="text/javascript"></script>
    <![endif]>
    
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>登录</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
     <link rel="shortcut icon" href="<%=basePath %>/img/qdlogo.jpg">
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="<%=basePath %>/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="<%=basePath %>/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="<%=basePath %>/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="<%=basePath %>/adminLTE/dist/css/AdminLTE.min.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="<%=basePath %>/adminLTE/plugins/iCheck/square/blue.css">
  </head>
  <body class="hold-transition login-page">
    <div class="login-box">
      <div class="login-logo">
        <img src="<%=basePath %>/img/qdlogo.jpg" class="img-circle" alt="QINGDAO AIRLINES"><a href="http://www.qdairlines.com"><b>&nbsp;QINGDAO</b>AIRLINES</a>
      </div>
      <div class="login-box-body">
        <p class="login-box-msg">
        	<spring:message code="Welcome"></spring:message>
        	<b>XX系统 </b>
        </p>
        <form action="<%=basePath%>login/withoutCas.do" method="post" id = "loginform">
         <div class="form-group has-feedback">
            <input id="userName" name="userName" class="form-control" placeholder="<spring:message code="Username"></spring:message>" value="${userName}">
            <span class="glyphicon glyphicon-user form-control-feedback"></span>
          </div>
          <div class="form-group has-feedback">
            <input id="password" type="password" name="password" class="form-control" placeholder="<spring:message code="Password"></spring:message>" value="${password}">
            <span class="glyphicon glyphicon-lock form-control-feedback"></span>
          </div>
          
          <c:if test="${LoginError != null}">
          	<p class="text-danger">  <spring:message code="LoginError"></spring:message>    </p>
          </c:if>  
            		
		 <div class="row ">
			<div class="col-xs-12">  
              <button type="submit" id="login" class="btn btn-primary btn-block btn-flat">
				<spring:message code="Login"></spring:message>
			  </button>
            </div>
		  </div>	
        </form>
      </div><!-- /.login-box-body -->
    </div><!-- /.login-box -->
  </body>
</html>
